/**
 * 树模型
 */
Ext.define('TreeNodeModel',{
	extend: 'Ext.data.Model',
	fields: [
       {name: 'id'},
       {name: 'text'},
       {name: 'qtip'},
       {name: 'url'},
       {name: 'expanded'},
       {name: 'leaf'},
       {name: 'icon'},
       {name: 'hrefTarget'},
       {name: 'children'}
	]
});

/**
 * 用户模型
 */
Ext.define('UserModel', {
    extend: 'Ext.data.Model',
    idProperty:'USER_ID',
	fields: [
       {name: 'USER_ID'},
       {name: 'ORG_ID'},
       {name: 'USER_CODE'},
       {name: 'USER_NAME'},
       {name: 'USER_TYPE'},
       {name: 'USER_SEX'},
       {name: 'USER_TEL'},
       {name: 'USER_EMAIL'},
       {name: 'USER_AVIDATE'},
       {name: 'C_STATUS'},
       {name: 'C_REMARK'},
       {name: 'ORG_SIMPLE_NAME'}
	]
});
/**
 * 树模型
 */
Ext.define('OrgNodeModel',{
	extend: 'Ext.data.Model',
	fields: [
       {name: 'id',mapping:'ORG_ID'},
       {name: 'text',mapping:'ORG_SIMPLE_NAME'},
       {name: 'qtip',mapping:'ORG_SIMPLE_NAME'},
       {name: 'url'},
       {name: 'expanded'},
       {name: 'leaf'},
       {name: 'icon'},
       {name: 'hrefTarget'},
       {name: 'children'}
	]
});
/**
 * 组织机构
 */
Ext.define('OrgModel', {
    extend: 'Ext.data.Model',
	fields: [
       {name: 'ORG_ID'},
       {name: 'ORG_CODE'},
       {name: 'ORG_SIMPLE_NAME'},
       {name: 'ORG_FULL_NAME'},
       {name: 'ORG_ADDRESS'},
       {name: 'ORG_TEL'},
       {name: 'ORG_FAX'},
       {name: 'ORG_BEGIN_DATE'},
       {name: 'ORG_TYPE'},
       {name: 'ORG_POSTAL'},
       {name: 'ORG_LEGAL'},
       {name: 'ORG_PARENT'},
       {name: 'ORG_ORDER'},
       {name: 'C_STATUS'},
       {name: 'C_REMARK'}
	]
});


/**
 * 系统菜单
 */
Ext.define('MenuModel', {
    extend: 'Ext.data.Model',
	fields: [
       {name: 'MENU_ID'},
       {name: 'MENU_CODE'},
       {name: 'MENU_NAME'},
       {name: 'MENU_IMG_CLS'},
       {name: 'MENU_ORDER'},
       {name: 'MENU_TYPE'},
       {name: 'MENU_URL'},
       {name: 'MENU_PARENT_ID'},
       {name: 'MENU_PARENT_NAME'},
       {name: 'MENU_HANDLER'},
       {name: 'C_STATUS'},
       {name: 'C_REMARK'}
	]
});


/**
 * 角色菜单
 */
Ext.define('RoleModel', {
    extend: 'Ext.data.Model',
	fields: [
       {name: 'ROLE_ID'},
       {name: 'ROLE_NAME'},
       {name: 'C_STATUS'},
       {name: 'C_REMARK'}
	]
});


/**
 * 基线
 */
Ext.define('ItilBlModel', {
    extend: 'Ext.data.Model',
	fields: [
       {name: 'BL_ID'},
       {name: 'BL_NAME'},
       {name:'CATEGORY_ID'},
       {name:'CATEGORY_NAME'},
       {name: 'C_REMARK'},
       {name: 'CREATE_DATE'}
	]
});
/**
 * 基线资产
 */
Ext.define('ItilBlAssetsModel', {
    extend: 'Ext.data.Model',
	fields: [
	   {name: 'BL_NAME'},
	   {name: 'CREATE_DATE'},
       {name: 'BL_ASSETS_ID'},
       {name: 'BL_ID'},
       {name: 'ASSETS_CODE'},
       {name: 'ASSETS_NAME'},
       {name:'CATEGORY_NAME'}
	]
});
/**
 * 基线资产属性
 */
Ext.define('ItilBlAssetsPropsModel', {
    extend: 'Ext.data.Model',
	fields: [
       {name: 'BL_ASSETS_PROPS_ID'},
       {name: 'BL_ASSETS_ID'},
       {name: 'ASSETS_CODE'},
       {name: 'PROPS_NAME'},
       {name: 'PROPS_VALUE'},
       {name: 'OLD_VALUE'}
	]
});